#include<QDir>
#include<QFile> 

#include<stdio.h>
#include<stdlib.h>

int main(int argc, char *argv[]){
	QDir testdir(".");
	testdir.setNameFilters(QStringList("Makefile_Test*"));
	for(uint i = 0; i < testdir.count(); i++){
		QString executable = testdir.absoluteFilePath(testdir[i]).remove("Makefile_");
		printf("%s\n", executable.toUtf8().data());
		if(system( (executable).toUtf8().data())){
			printf("Test failed. Aborting...\n");
			return 1;
		}
	}
	return 0;
}
 
 
